import request from '@/utils/request'

const api = "https://fanyi.baidu.com"
const api2="https://fanyi-api.baidu.com/api/trans/vip/translate"


/** form百度翻译
 *  判断输入的语言 
 *  @param  {String} 
 *  @return {String}
 */
export const getLangdetect = (params) => {
	return request.post(api + '/langdetect', params)
}

/**
 *  翻译
 *  @param  {String} 
 *  @return {String}
 */
export const getResult = (params) => {
	return request.get(api2, params)
}
